#include "VLanguageEffect.h"
#include "VMain.h"
#include "languageui/Rotate.h"

VLanguageEffect::VLanguageEffect(void)
{
    init();
}

VLanguageEffect::~VLanguageEffect(void)
{
    SAFE_RELEASE(_rotation);
}

void VLanguageEffect::init()
{
    _rotation = new CRotate;
}

bool VLanguageEffect::render() const
{
    if (!VRRWidget::render())
    {
        return false;
    }

    return _rotation->render();
}

void VLanguageEffect::animate()
{
    _rotation->animate();
}

void VLanguageEffect::move(int x, int y)
{
    VWidget::move(x, y);
}

void VLanguageEffect::resize(int w, int h)
{
    VWidget::resize(w, h);
}

void VLanguageEffect::scroll(int direction)
{
    _rotation->start(direction);
}